﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LevenBlog.Core.Data;
using LevenBlog.Core.Entities;

namespace LevenBlog.Core.Service
{
    public static class Visiter
    {
        public static int Count(IDbProvider provider)
        {
            return ProviderManager.Factory.Visiter.Count(provider);
        }

        public static lb_visiter Get(IDbProvider provider, int id)
        {
            return ProviderManager.Factory.Visiter.Get(provider, id);
        }

        public static IList<lb_visiter> Get(IDbProvider provider, int pageSize, int currentPage)
        {
            return ProviderManager.Factory.Visiter.Get(provider, pageSize, currentPage);
        }

        public static void Insert(IDbProvider provider, lb_visiter visiter)
        {
            ProviderManager.Factory.Visiter.Insert(provider, visiter);
        }
    }
}
